package entity;

import java.util.Set;

/**
 * @author YoungRain
 * @date 2022/08/17 15:10
 */
public class Chinese implements Person {
    private String name;
    private int age;
    private Wife wife;
    private Set<Wife> wifes;

    public Chinese(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Chinese(String name, int age, Wife wife) {
        this.name = name;
        this.age = age;
        this.wife = wife;
    }

    public Chinese() {
    }

    public Set<Wife> getWifes() {
        return wifes;
    }

    public void setWifes(Set<Wife> wifes) {
        this.wifes = wifes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Wife getWife() {
        return wife;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Chinese{");
        sb.append("name='").append(name).append('\'');
        sb.append(", age=").append(age);
        sb.append(", wife=").append(wife);
        sb.append(", wifes=").append(wifes);
        sb.append('}');
        return sb.toString();
    }

    @Override
    public void eat() {
        System.out.println("吃饺子");
    }
}
